package com.atguigu.dao;

import com.atguigu.base.BaseDao;
import com.atguigu.entity.RolePermission;

import java.util.List;

/**
 * @author 杨林
 * @create 2022-09-29 17:55 星期四
 * description:
 */

public interface RolePermissionDao extends BaseDao<RolePermission> {

    /**
     * 根据角色id获取对应的权限ids
     * @param roleId
     * @return
     */
    List<Long> findPermissionIdListByRoleId(Long roleId);

    void deleteByRoleId(Long roleId);
}
